const install = (Vue, vm) => {
	
	Vue.prototype.$u.http.setConfig({
		baseUrl: 'https://jsonplaceholder.typicode.com/',
		loadingText: '努力加载中',
		loadingTime: 800,
	});

	// 请求拦截
	Vue.prototype.$u.http.interceptor.request = (config) => {
		config.header.Token = 'xxxxxx';
		return config;
	}

	// 响应拦截器
	Vue.prototype.$u.http.interceptor.response = (res) => {
		return res
	}
}

export default {
	install
}
